<!DOCTYPE html>
<html lang="zh-Hans">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="/lib/pace/pace-theme-minimal.min.css">
  <script src="/lib/pace/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"sophimp.gitee.io","root":"/","scheme":"Pisces","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="使用了一段时间gentoo, 太考验机器性能和网速了，移动，铁通，长城这些网络对开发来说是真得不友好， 访问国外的网站速度太慢了，且不稳定，因此，再折腾一下archlinux，有了gentoo的安装基础，archlinux的安装并未起多少波折, 对于所谓的安装启动盘环境理解的更深了。">
<meta property="og:type" content="article">
<meta property="og:title" content="安装Archlinux">
<meta property="og:url" content="http://sophimp.gitee.io/2020/02/19/linux/install_arch_from_existing_linux/index.html">
<meta property="og:site_name" content="Sophimp&#39;s Space">
<meta property="og:description" content="使用了一段时间gentoo, 太考验机器性能和网速了，移动，铁通，长城这些网络对开发来说是真得不友好， 访问国外的网站速度太慢了，且不稳定，因此，再折腾一下archlinux，有了gentoo的安装基础，archlinux的安装并未起多少波折, 对于所谓的安装启动盘环境理解的更深了。">
<meta property="article:published_time" content="2020-02-18T17:56:22.000Z">
<meta property="article:modified_time" content="2021-03-15T03:49:47.937Z">
<meta property="article:author" content="Sophimp">
<meta property="article:tag" content="Archlinux">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://sophimp.gitee.io/2020/02/19/linux/install_arch_from_existing_linux/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-Hans'
  };
</script>

  <title>安装Archlinux | Sophimp's Space</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

	
	<script type="text/javascript" src="//cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js"></script>
	

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Sophimp's Space</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">coding & thinking</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>

  <a href="https://github.com/sophimp" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-Hans">
    <link itemprop="mainEntityOfPage" href="http://sophimp.gitee.io/2020/02/19/linux/install_arch_from_existing_linux/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.png">
      <meta itemprop="name" content="Sophimp">
      <meta itemprop="description" content="A dream begin">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Sophimp's Space">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          安装Archlinux
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">Posted on</span>

              <time title="Created: 2020-02-19 01:56:22" itemprop="dateCreated datePublished" datetime="2020-02-19T01:56:22+08:00">2020-02-19</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">Edited on</span>
                <time title="Modified: 2021-03-15 11:49:47" itemprop="dateModified" datetime="2021-03-15T11:49:47+08:00">2021-03-15</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">In</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Linux/" itemprop="url" rel="index"><span itemprop="name">Linux</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="Views" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">Views: </span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
            <div class="post-description">使用了一段时间gentoo, 太考验机器性能和网速了，移动，铁通，长城这些网络对开发来说是真得不友好， 访问国外的网站速度太慢了，且不稳定，因此，再折腾一下archlinux，有了gentoo的安装基础，archlinux的安装并未起多少波折, 对于所谓的安装启动盘环境理解的更深了。</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h2 id="从已在存在的-ubuntu系统中安装archlinux"><a href="#从已在存在的-ubuntu系统中安装archlinux" class="headerlink" title="从已在存在的 ubuntu系统中安装archlinux"></a>从已在存在的 ubuntu系统中安装archlinux</h2><p>参考<a href="https://wiki.archlinux.org/index.php/Install_Arch_Linux_from_existing_Linux_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)" target="_blank" rel="noopener">arch 官方文档Install_Arch_Linux_from_existing_Linux</a><br>这里记录某些步骤注意的一些点. </p>
<ol>
<li><p>下载准备 arch-bootstrap</p>
<p> <a href="https://mirrors.tuna.tsinghua.edu.cn/archlinux/iso" target="_blank" rel="noopener">下载地址(清华镜像源)</a>;<br> 可以选择其他的镜像源</p>
</li>
<li><p>使用bootstrap 创建chroot</p>
</li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 解压 arch-bootstrap 包, 注意要使用root权限</span></span><br><span class="line"><span class="built_in">cd</span> /tmp</span><br><span class="line">tar xzf &lt;path-to-arch-bootstrap-image&gt;/archlinux-bootstrap-2020.02.01-x86_64.tar.gz</span><br><span class="line"></span><br><span class="line"><span class="comment"># 选择mirrors,(将国内的镜像移到上面)</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 进入chroot</span></span><br><span class="line"><span class="comment"># 若安装了 4 或更高版本的bash</span></span><br><span class="line">/tmp/root.x86_64/bin/arch-chroot /tmp/root.x86_64</span><br><span class="line"></span><br><span class="line"><span class="comment"># 若无(与上面二选一)</span></span><br><span class="line"><span class="built_in">cd</span> /tmp/root.x86_64</span><br><span class="line">   cp /etc/resolv.conf etc</span><br><span class="line">   mount --rbind /proc proc</span><br><span class="line">   mount --rbind /sys sys</span><br><span class="line">   mount --rbind /dev dev</span><br><span class="line">   mount --rbind /run run</span><br><span class="line"><span class="comment">#（假设 /run 存在）</span></span><br><span class="line">   chroot /tmp/root.x86_64 /bin/bash</span><br></pre></td></tr></table></figure>

<ol start="3">
<li>使用chroot环境 </li>
</ol>
<p>到这里基本上就与 官方arch install guide 从 U盘引进入chroot前的步骤是一致的, 当然还要确定当前的linux系统是连外网的. </p>
<p>后面的步骤与install guide 从挂载分区开始， 然后至系统配置。</p>
<pre><code>使用哪种方式进入chroot环境， 还得看有无arch-bootstarp环境， arch-chroot 也就是将底下的命令封装起来了。 

在进入chroot前，要挂载安装系统的分区， 这里有一个场景， 由于是从ubuntu系统中装archlinux, 装ubuntu时， 也就分了三个分区，/boot, /root, /swap. 现在/root分区(/dev/sda2)， 已经被挂载了， 不能重新挂载在 /mnt 下， 也就进入不了chroot环境 ， 这个时个要怎么办呢?
我的做法是先将/dev/sda2重新分区， 留出20G的空间， 先装archlinux， 顺便备份一下ubuntu上的资料，（20G不够， 按需分配， 资料太多， 就得另找硬盘备份), 然后再引导进入archlinux, 将/dev/sda2再格式化， 然后将整个archlinux系统拷贝过去， </code></pre><ol start="5">
<li><p>装系统</p>
<p> 如果按官网的推荐的pacstrap来装系统， 装grub引导程序的时候， 也得按官方教程走</p>
<p> 如果不按官网的教程走， 在进入chroot环境后， 需要再挂载一次/boot 用于装grub, 因此要再使用 <code>pacman -S inux Linux-firmware</code> 再安装一次linux内核， 这样就会在/boot下找到内核相关的三个文件, 然后再安装引导程序. </p>
</li>
</ol>
<p>安装引导程序</p>
<p>安装配置网络</p>
<pre><code>配置一下wifi, 有网线的话</code></pre><p>图形环境 </p>
<pre><code>显卡配置，总感觉卡卡的， 但是下载又不卡， 这到底是怎么回事。 

手动配置， lighdm, dwm, st</code></pre><p>lighdm</p>
<pre><code>如何开机启动, 
提前加载环境变量，在xprofile下配置， 语法与 .xinitrc 一样</code></pre><p>字体，本地化</p>
<pre><code>如何在中文和英文的环境下更加高效，不可能只用中文或只用英文， 两种文化都不能放弃。 </code></pre><p>工具学习 </p>
<pre><code>dwm, st, vim 基本配置，插件. vim不能太依赖插件， 一切小trick 主要还是靠自身脚本就可以实现

snippets, </code></pre><p>dw 使用</p>
<pre><code>如何操控， 定制自己的一套习惯。 
theiceboy修改的快捷键

win键替换了原来的alt键，修改了statusbar方向

窗口跳转 
    win+e/u
不退出刷新dww
    这个是编译生成新，能实现不关闭已打开的窗口，应用新的dwm吗？ 
修改当前tab的布局 
    不支持， 所有的都是
将当前应用移到其他桌面 
    win + shift + 数字
焦点窗口放大，缩小
    win + space
主窗口与栈窗口互换
    没找到此功能， 只找到向master 加减窗口的

快速启动 </code></pre><p>st 使用</p>
<pre><code>字体, 下载一个monaco, 不能纠结aur 上没有的
背景, 暂时先使用theiceboy的
快捷键,</code></pre><p>kde桌面使用</p>
<pre><code>没心思折腾dwm, st 了， 电脑的性能有， 桌面环境也省心， 主要是连续折腾， 工作进度受影响了。 
所以， 还是换一个kde, 省点心吧。 但是发现， 安装kde也并不省心。  </code></pre><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S plasma kdebase  <span class="comment"># 只包含kde 的基础包</span></span><br><span class="line">sudo pacman -S xf86-input-libinput xf86-input-synaptics xf86-video-intel xf86-video-vesa  <span class="comment">#这些也必须安，驱动键盘鼠标， 触摸板， 否则进入桌面驱动不了</span></span><br><span class="line">sudo pacman -S lightdm lightdm-gte-greeter <span class="comment"># 加一个启动登陆， 不用每次都startx</span></span><br></pre></td></tr></table></figure>
<pre><code>网络连接也出问题了， 在arhcwiki 上学一学 iw, wpa_supplicant 的使用，解决无线网络连接的问题, 无线要选扫描， 使用root用户连接。 

输入法怎么也不能切换了呢？ 重新安装fcitx, fcitx-im, kcm-fcitx, 重启系统， 输入法可用。  可以通过fcitx-dignose 诊断当前环境哪里出错了，所有的包，配置都安装好， 工作还不能正常， 重启系统试试 。 或重启KDE, 

![打造五笔单字词库](../linux/fcitx-wubi-setting.md)。 输入环境终于打造好了。 

konsole 配置, 也是摸索了一翻。 

lightdm 的配置, 要配置 greeter-seession 和 session-wrapper， 再加入开机启动</code></pre><p>网络连接</p>
<pre><code>路由有线连接， 只需开机启动dhcpcd即可

无线连接， 需学会使用 ip iw， wpa 工具

搜索wifi, 连接wifi，修改静态ip, mask

端口转发
开启wifi热点

官方教程是使用 networkmanager, 先按这个走一遍
nm-connection-editor, 图形界面
network-manager-applet, 提供系统拖盘</code></pre><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"><span class="comment"># 安装 networkmanager, nm-connection-editor, network-manager-applet</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 添加daemon, 启动NetworkManager</span></span><br><span class="line">systemctl <span class="built_in">enable</span> NetworkManager</span><br><span class="line">systemctl start NetworkManager</span><br><span class="line"></span><br><span class="line"><span class="comment"># 显示附近的 wifi:</span></span><br><span class="line">nmcli device wifi list</span><br><span class="line"></span><br><span class="line"><span class="comment"># 连接 wifi:</span></span><br><span class="line">nmcli device wifi connect SSID password password</span><br><span class="line"></span><br><span class="line"><span class="comment">#连接到隐藏的 wifi:</span></span><br><span class="line">nmcli device wifi connect SSID password password hidden yes</span><br><span class="line"></span><br><span class="line"><span class="comment">#通过 wlan1 wifi 网卡(interface)连接 wifi:</span></span><br><span class="line">nmcli device wifi connect SSID password password ifname wlan1 profile_name</span><br><span class="line"></span><br><span class="line"><span class="comment">#断开一个网卡(interface)上的连接:</span></span><br><span class="line">nmcli device disconnect ifname eth0</span><br><span class="line"></span><br><span class="line"><span class="comment">#重新连接一个被标记为“已断开”的网卡：</span></span><br><span class="line">nmcli connection up uuid UUID</span><br><span class="line"></span><br><span class="line"><span class="comment">#显示一个所有连接过的网络的UUID的列表:</span></span><br><span class="line">nmcli connection show</span><br><span class="line"></span><br><span class="line"><span class="comment"># 查看所有网络设备及其状态:</span></span><br><span class="line">nmcli device</span><br><span class="line"></span><br><span class="line"><span class="comment">#关掉 wifi:</span></span><br><span class="line">nmcli radio wifi off</span><br></pre></td></tr></table></figure>

<p>使用 iw, iwconfig, wpa_supplicant 来管理，连接wifi</p>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 查看当前服务状态</span></span><br><span class="line"></span><br><span class="line">wpa_passphrase &lt;MYSSID&gt; &lt;passphrase&gt; &gt; wpa_supplication.conf</span><br><span class="line">wpa_supplicant -B -i &lt;interface(wlan0)&gt; -C wpa_supplication.conf</span><br><span class="line"></span><br><span class="line">ip link</span><br><span class="line">ip link <span class="built_in">set</span> &lt;interface&gt; up|down</span><br><span class="line"></span><br><span class="line">iw dev wlan0 scan</span><br><span class="line"></span><br><span class="line">ip address show</span><br><span class="line">ip address add &lt;address/prefix_len&gt; &lt;broadcast&gt; dev &lt;interface&gt;</span><br><span class="line">ip address del &lt;address/prefix_len&gt; dev &lt;interface&gt;</span><br></pre></td></tr></table></figure>

<p>添加同步源</p>
<p>/etc/pacman.conf<br>    pacman的主同步源， 可以添定自定义的server, 本地server</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">[archlinuxcn]</span><br><span class="line">SigLevel &#x3D; Optional TrustAll</span><br><span class="line">Server &#x3D; http or ftp</span><br></pre></td></tr></table></figure>

<p>/etc/pacman.d/mirrors</p>
<pre><code>core, extra, community 同步源的配置文件, 选择China下的镜像，取消注释, 
一般选 清华(tuna.tsinghua), 中科大(ustc), 上海交大(sjtug.sjtu), 浙大(zju)
网易(163) 阿里(aliyun) 的都是http的， 现在已经不建议使用了</code></pre><p>/etc/makepkg.conf</p>
<pre><code>makepkg 的配置文件， 使用makepkg 进行源码安装， 替代make, 安装完的包可同步到 pacman 统一管理</code></pre><p>yay</p>
<pre><code>yay 替代了 yaourt
安装yay, 先得在/etc/pacman.conf 中配置 archlinuxcn源， 否则还找不到</code></pre><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">[archlinuxcn]</span><br><span class="line">SigLevel &#x3D; Optional TrustAll</span><br><span class="line">Server &#x3D; https:&#x2F;&#x2F;mirrors.tuna.tsinghua.edu.cn&#x2F;archlinuxcn&#x2F;$arch</span><br></pre></td></tr></table></figure>

<pre><code>添加 aur 源
yay --aururl &quot;https://aur.tuna.tsinghua.edu.cn&quot;</code></pre><p>pacman 常用命令及技巧</p>
<pre><code>设计理念</code></pre><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">pacman -Qs fuzzy-package-name <span class="comment">#查找已安装</span></span><br><span class="line"></span><br><span class="line">pacman -Ss fuzzy-package-name <span class="comment">#查找软件包</span></span><br></pre></td></tr></table></figure>


<h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><p>从已存在的linux系统中安装archlinux, 可见linux的自由与灵活, 也可发现linux各发行版本在本质上都是通的, 只是对系统环境的选择(内核配置, 应用软件, 应用仓库, 包管理器等等) 所定位的目标人群不一样, 因此衍发出各自的哲学. </p>
<p>看这种技巧性的教程， 还是看视频效率高些， 至少是先知道怎么用， 先用起来， 后面再研究， 更高效一些。 知道需求和原理， 再思考实现思路就更容易一些。 </p>
<p>学习每一个工具的使用， 也要时间成本，然后，真正了解掌握操作系统的每一个环节，本身就是一件很有成就的事情。 </p>
<p>这个文档一遍还完不成，得再折腾几遍安装才行。 昨天折腾一天的， 今天再复盘就不行了 2020年 02月 20日 星期四 14:06:22 CST</p>
<p>分盘这里， 确实要先备份数据，数据无价。 </p>
<p>折腾系统的过程， 也是逐步完善能用电脑做什么的过程, 是要先熟悉系统都包括什么，然后才能更好的利用。将日常使用的流程丰富起来， 做更多的事， 同时不断优化， 自动化，能力越来越大， 责任越来越大。 这本就是人活着的意义? </p>
<p>也许不该将精力放在这上面？<br>安装一个桌面系统先用着，将更多的注意力放在vim, 开发技能的学习上？<br>事情也不是这样的，学习也并不是一定都是为了有用，而是因为喜欢， 因为开心。 折腾这些玩意， 在面试的时候确实不能加分， 但是抵不住我在用操作系统的时候，心里有底气。<br>这个事情还是得折腾，就不能完全交给dm来搞定， 亲力亲为达到心中有数，后面再拿来开箱即用.<br>时区，locale, 语言， 网络， 软件管理，自动小脚本， 这些不是一朝一夕完成的， 是这两天我太心急了，在工作时间搞这些，搞不定就要耽误工作， 耽误计划了。<br>目前目的基本达到了， 先回到正轨，系统再慢慢调教，必须得调教。 各方面都调教， 达到心意合一。 </p>
<p>将家里的gentoo也换arch了， 后面换了配置高点的主机， 再折腾gentoo, 网络慢， 编译慢， 搞gentoo是有些伤不起，其实这样看来，arch已经能满足目前的需求了， 看源码嘛，再另下 载关联起来也不是多大个事。没有必要， 也没有精力还去研究每个工具。大多数工具， 开箱即使， 操作系统， 本来也就是个工具。 </p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/Archlinux/" rel="tag"># Archlinux</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2019/12/19/android/tools/repo_usage/" rel="prev" title="repo 工具的使用">
      <i class="fa fa-chevron-left"></i> repo 工具的使用
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/02/19/linux/fcitx-wubi-setting/" rel="next" title="fcitx 五笔字库单字上屏">
      fcitx 五笔字库单字上屏 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#从已在存在的-ubuntu系统中安装archlinux"><span class="nav-number">1.</span> <span class="nav-text">从已在存在的 ubuntu系统中安装archlinux</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#总结"><span class="nav-number">2.</span> <span class="nav-text">总结</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Sophimp"
      src="/images/avatar.png">
  <p class="site-author-name" itemprop="name">Sophimp</p>
  <div class="site-description" itemprop="description">A dream begin</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">86</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
        <span class="site-state-item-count">19</span>
        <span class="site-state-item-name">categories</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
        <span class="site-state-item-count">89</span>
        <span class="site-state-item-name">tags</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/sophimp" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;sophimp" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:sophimp2020@126.com" title="E-Mail → mailto:sophimp2020@126.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Sophimp</span>
</div>

<!--
  <div class="powered-by">Powered by <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://pisces.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Pisces</a>
  </div>
-->

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="Total Visitors">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="Total Views">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
